<?php
if ($this->Session->read ( 'admin_uid' )){
	if($this->params ['controller']=='index' && $this->webroot=='/'){
		echo $this->element('header');
	}else{
		echo $this->element('header_inc');
	} 
}else{
	echo $this->element('header_login');
}
?>

<?php echo $content_for_layout; ?>

<?php echo $this->element('footer'); ?>